package com.kgc.springboot.hangduo.pojo;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class LawsExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public LawsExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Integer value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Integer value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Integer value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Integer value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Integer value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Integer> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Integer> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Integer value1, Integer value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Integer value1, Integer value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andLawsBranchIsNull() {
            addCriterion("laws_branch is null");
            return (Criteria) this;
        }

        public Criteria andLawsBranchIsNotNull() {
            addCriterion("laws_branch is not null");
            return (Criteria) this;
        }

        public Criteria andLawsBranchEqualTo(Integer value) {
            addCriterion("laws_branch =", value, "lawsBranch");
            return (Criteria) this;
        }

        public Criteria andLawsBranchNotEqualTo(Integer value) {
            addCriterion("laws_branch <>", value, "lawsBranch");
            return (Criteria) this;
        }

        public Criteria andLawsBranchGreaterThan(Integer value) {
            addCriterion("laws_branch >", value, "lawsBranch");
            return (Criteria) this;
        }

        public Criteria andLawsBranchGreaterThanOrEqualTo(Integer value) {
            addCriterion("laws_branch >=", value, "lawsBranch");
            return (Criteria) this;
        }

        public Criteria andLawsBranchLessThan(Integer value) {
            addCriterion("laws_branch <", value, "lawsBranch");
            return (Criteria) this;
        }

        public Criteria andLawsBranchLessThanOrEqualTo(Integer value) {
            addCriterion("laws_branch <=", value, "lawsBranch");
            return (Criteria) this;
        }

        public Criteria andLawsBranchIn(List<Integer> values) {
            addCriterion("laws_branch in", values, "lawsBranch");
            return (Criteria) this;
        }

        public Criteria andLawsBranchNotIn(List<Integer> values) {
            addCriterion("laws_branch not in", values, "lawsBranch");
            return (Criteria) this;
        }

        public Criteria andLawsBranchBetween(Integer value1, Integer value2) {
            addCriterion("laws_branch between", value1, value2, "lawsBranch");
            return (Criteria) this;
        }

        public Criteria andLawsBranchNotBetween(Integer value1, Integer value2) {
            addCriterion("laws_branch not between", value1, value2, "lawsBranch");
            return (Criteria) this;
        }

        public Criteria andLawsAliasIsNull() {
            addCriterion("laws_alias is null");
            return (Criteria) this;
        }

        public Criteria andLawsAliasIsNotNull() {
            addCriterion("laws_alias is not null");
            return (Criteria) this;
        }

        public Criteria andLawsAliasEqualTo(String value) {
            addCriterion("laws_alias =", value, "lawsAlias");
            return (Criteria) this;
        }

        public Criteria andLawsAliasNotEqualTo(String value) {
            addCriterion("laws_alias <>", value, "lawsAlias");
            return (Criteria) this;
        }

        public Criteria andLawsAliasGreaterThan(String value) {
            addCriterion("laws_alias >", value, "lawsAlias");
            return (Criteria) this;
        }

        public Criteria andLawsAliasGreaterThanOrEqualTo(String value) {
            addCriterion("laws_alias >=", value, "lawsAlias");
            return (Criteria) this;
        }

        public Criteria andLawsAliasLessThan(String value) {
            addCriterion("laws_alias <", value, "lawsAlias");
            return (Criteria) this;
        }

        public Criteria andLawsAliasLessThanOrEqualTo(String value) {
            addCriterion("laws_alias <=", value, "lawsAlias");
            return (Criteria) this;
        }

        public Criteria andLawsAliasLike(String value) {
            addCriterion("laws_alias like", value, "lawsAlias");
            return (Criteria) this;
        }

        public Criteria andLawsAliasNotLike(String value) {
            addCriterion("laws_alias not like", value, "lawsAlias");
            return (Criteria) this;
        }

        public Criteria andLawsAliasIn(List<String> values) {
            addCriterion("laws_alias in", values, "lawsAlias");
            return (Criteria) this;
        }

        public Criteria andLawsAliasNotIn(List<String> values) {
            addCriterion("laws_alias not in", values, "lawsAlias");
            return (Criteria) this;
        }

        public Criteria andLawsAliasBetween(String value1, String value2) {
            addCriterion("laws_alias between", value1, value2, "lawsAlias");
            return (Criteria) this;
        }

        public Criteria andLawsAliasNotBetween(String value1, String value2) {
            addCriterion("laws_alias not between", value1, value2, "lawsAlias");
            return (Criteria) this;
        }

        public Criteria andLawsVersionIsNull() {
            addCriterion("laws_version is null");
            return (Criteria) this;
        }

        public Criteria andLawsVersionIsNotNull() {
            addCriterion("laws_version is not null");
            return (Criteria) this;
        }

        public Criteria andLawsVersionEqualTo(String value) {
            addCriterion("laws_version =", value, "lawsVersion");
            return (Criteria) this;
        }

        public Criteria andLawsVersionNotEqualTo(String value) {
            addCriterion("laws_version <>", value, "lawsVersion");
            return (Criteria) this;
        }

        public Criteria andLawsVersionGreaterThan(String value) {
            addCriterion("laws_version >", value, "lawsVersion");
            return (Criteria) this;
        }

        public Criteria andLawsVersionGreaterThanOrEqualTo(String value) {
            addCriterion("laws_version >=", value, "lawsVersion");
            return (Criteria) this;
        }

        public Criteria andLawsVersionLessThan(String value) {
            addCriterion("laws_version <", value, "lawsVersion");
            return (Criteria) this;
        }

        public Criteria andLawsVersionLessThanOrEqualTo(String value) {
            addCriterion("laws_version <=", value, "lawsVersion");
            return (Criteria) this;
        }

        public Criteria andLawsVersionLike(String value) {
            addCriterion("laws_version like", value, "lawsVersion");
            return (Criteria) this;
        }

        public Criteria andLawsVersionNotLike(String value) {
            addCriterion("laws_version not like", value, "lawsVersion");
            return (Criteria) this;
        }

        public Criteria andLawsVersionIn(List<String> values) {
            addCriterion("laws_version in", values, "lawsVersion");
            return (Criteria) this;
        }

        public Criteria andLawsVersionNotIn(List<String> values) {
            addCriterion("laws_version not in", values, "lawsVersion");
            return (Criteria) this;
        }

        public Criteria andLawsVersionBetween(String value1, String value2) {
            addCriterion("laws_version between", value1, value2, "lawsVersion");
            return (Criteria) this;
        }

        public Criteria andLawsVersionNotBetween(String value1, String value2) {
            addCriterion("laws_version not between", value1, value2, "lawsVersion");
            return (Criteria) this;
        }

        public Criteria andLawsNameIsNull() {
            addCriterion("laws_name is null");
            return (Criteria) this;
        }

        public Criteria andLawsNameIsNotNull() {
            addCriterion("laws_name is not null");
            return (Criteria) this;
        }

        public Criteria andLawsNameEqualTo(String value) {
            addCriterion("laws_name =", value, "lawsName");
            return (Criteria) this;
        }

        public Criteria andLawsNameNotEqualTo(String value) {
            addCriterion("laws_name <>", value, "lawsName");
            return (Criteria) this;
        }

        public Criteria andLawsNameGreaterThan(String value) {
            addCriterion("laws_name >", value, "lawsName");
            return (Criteria) this;
        }

        public Criteria andLawsNameGreaterThanOrEqualTo(String value) {
            addCriterion("laws_name >=", value, "lawsName");
            return (Criteria) this;
        }

        public Criteria andLawsNameLessThan(String value) {
            addCriterion("laws_name <", value, "lawsName");
            return (Criteria) this;
        }

        public Criteria andLawsNameLessThanOrEqualTo(String value) {
            addCriterion("laws_name <=", value, "lawsName");
            return (Criteria) this;
        }

        public Criteria andLawsNameLike(String value) {
            addCriterion("laws_name like", value, "lawsName");
            return (Criteria) this;
        }

        public Criteria andLawsNameNotLike(String value) {
            addCriterion("laws_name not like", value, "lawsName");
            return (Criteria) this;
        }

        public Criteria andLawsNameIn(List<String> values) {
            addCriterion("laws_name in", values, "lawsName");
            return (Criteria) this;
        }

        public Criteria andLawsNameNotIn(List<String> values) {
            addCriterion("laws_name not in", values, "lawsName");
            return (Criteria) this;
        }

        public Criteria andLawsNameBetween(String value1, String value2) {
            addCriterion("laws_name between", value1, value2, "lawsName");
            return (Criteria) this;
        }

        public Criteria andLawsNameNotBetween(String value1, String value2) {
            addCriterion("laws_name not between", value1, value2, "lawsName");
            return (Criteria) this;
        }

        public Criteria andStateIsNull() {
            addCriterion("state is null");
            return (Criteria) this;
        }

        public Criteria andStateIsNotNull() {
            addCriterion("state is not null");
            return (Criteria) this;
        }

        public Criteria andStateEqualTo(Integer value) {
            addCriterion("state =", value, "state");
            return (Criteria) this;
        }

        public Criteria andStateNotEqualTo(Integer value) {
            addCriterion("state <>", value, "state");
            return (Criteria) this;
        }

        public Criteria andStateGreaterThan(Integer value) {
            addCriterion("state >", value, "state");
            return (Criteria) this;
        }

        public Criteria andStateGreaterThanOrEqualTo(Integer value) {
            addCriterion("state >=", value, "state");
            return (Criteria) this;
        }

        public Criteria andStateLessThan(Integer value) {
            addCriterion("state <", value, "state");
            return (Criteria) this;
        }

        public Criteria andStateLessThanOrEqualTo(Integer value) {
            addCriterion("state <=", value, "state");
            return (Criteria) this;
        }

        public Criteria andStateIn(List<Integer> values) {
            addCriterion("state in", values, "state");
            return (Criteria) this;
        }

        public Criteria andStateNotIn(List<Integer> values) {
            addCriterion("state not in", values, "state");
            return (Criteria) this;
        }

        public Criteria andStateBetween(Integer value1, Integer value2) {
            addCriterion("state between", value1, value2, "state");
            return (Criteria) this;
        }

        public Criteria andStateNotBetween(Integer value1, Integer value2) {
            addCriterion("state not between", value1, value2, "state");
            return (Criteria) this;
        }

        public Criteria andLawsImprintIsNull() {
            addCriterion("laws_imprint is null");
            return (Criteria) this;
        }

        public Criteria andLawsImprintIsNotNull() {
            addCriterion("laws_imprint is not null");
            return (Criteria) this;
        }

        public Criteria andLawsImprintEqualTo(String value) {
            addCriterion("laws_imprint =", value, "lawsImprint");
            return (Criteria) this;
        }

        public Criteria andLawsImprintNotEqualTo(String value) {
            addCriterion("laws_imprint <>", value, "lawsImprint");
            return (Criteria) this;
        }

        public Criteria andLawsImprintGreaterThan(String value) {
            addCriterion("laws_imprint >", value, "lawsImprint");
            return (Criteria) this;
        }

        public Criteria andLawsImprintGreaterThanOrEqualTo(String value) {
            addCriterion("laws_imprint >=", value, "lawsImprint");
            return (Criteria) this;
        }

        public Criteria andLawsImprintLessThan(String value) {
            addCriterion("laws_imprint <", value, "lawsImprint");
            return (Criteria) this;
        }

        public Criteria andLawsImprintLessThanOrEqualTo(String value) {
            addCriterion("laws_imprint <=", value, "lawsImprint");
            return (Criteria) this;
        }

        public Criteria andLawsImprintLike(String value) {
            addCriterion("laws_imprint like", value, "lawsImprint");
            return (Criteria) this;
        }

        public Criteria andLawsImprintNotLike(String value) {
            addCriterion("laws_imprint not like", value, "lawsImprint");
            return (Criteria) this;
        }

        public Criteria andLawsImprintIn(List<String> values) {
            addCriterion("laws_imprint in", values, "lawsImprint");
            return (Criteria) this;
        }

        public Criteria andLawsImprintNotIn(List<String> values) {
            addCriterion("laws_imprint not in", values, "lawsImprint");
            return (Criteria) this;
        }

        public Criteria andLawsImprintBetween(String value1, String value2) {
            addCriterion("laws_imprint between", value1, value2, "lawsImprint");
            return (Criteria) this;
        }

        public Criteria andLawsImprintNotBetween(String value1, String value2) {
            addCriterion("laws_imprint not between", value1, value2, "lawsImprint");
            return (Criteria) this;
        }

        public Criteria andLawsPathIsNull() {
            addCriterion("laws_path is null");
            return (Criteria) this;
        }

        public Criteria andLawsPathIsNotNull() {
            addCriterion("laws_path is not null");
            return (Criteria) this;
        }

        public Criteria andLawsPathEqualTo(String value) {
            addCriterion("laws_path =", value, "lawsPath");
            return (Criteria) this;
        }

        public Criteria andLawsPathNotEqualTo(String value) {
            addCriterion("laws_path <>", value, "lawsPath");
            return (Criteria) this;
        }

        public Criteria andLawsPathGreaterThan(String value) {
            addCriterion("laws_path >", value, "lawsPath");
            return (Criteria) this;
        }

        public Criteria andLawsPathGreaterThanOrEqualTo(String value) {
            addCriterion("laws_path >=", value, "lawsPath");
            return (Criteria) this;
        }

        public Criteria andLawsPathLessThan(String value) {
            addCriterion("laws_path <", value, "lawsPath");
            return (Criteria) this;
        }

        public Criteria andLawsPathLessThanOrEqualTo(String value) {
            addCriterion("laws_path <=", value, "lawsPath");
            return (Criteria) this;
        }

        public Criteria andLawsPathLike(String value) {
            addCriterion("laws_path like", value, "lawsPath");
            return (Criteria) this;
        }

        public Criteria andLawsPathNotLike(String value) {
            addCriterion("laws_path not like", value, "lawsPath");
            return (Criteria) this;
        }

        public Criteria andLawsPathIn(List<String> values) {
            addCriterion("laws_path in", values, "lawsPath");
            return (Criteria) this;
        }

        public Criteria andLawsPathNotIn(List<String> values) {
            addCriterion("laws_path not in", values, "lawsPath");
            return (Criteria) this;
        }

        public Criteria andLawsPathBetween(String value1, String value2) {
            addCriterion("laws_path between", value1, value2, "lawsPath");
            return (Criteria) this;
        }

        public Criteria andLawsPathNotBetween(String value1, String value2) {
            addCriterion("laws_path not between", value1, value2, "lawsPath");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNull() {
            addCriterion("create_time is null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNotNull() {
            addCriterion("create_time is not null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeEqualTo(Date value) {
            addCriterion("create_time =", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotEqualTo(Date value) {
            addCriterion("create_time <>", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThan(Date value) {
            addCriterion("create_time >", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("create_time >=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThan(Date value) {
            addCriterion("create_time <", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
            addCriterion("create_time <=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIn(List<Date> values) {
            addCriterion("create_time in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotIn(List<Date> values) {
            addCriterion("create_time not in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeBetween(Date value1, Date value2) {
            addCriterion("create_time between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
            addCriterion("create_time not between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andLastTimeIsNull() {
            addCriterion("last_time is null");
            return (Criteria) this;
        }

        public Criteria andLastTimeIsNotNull() {
            addCriterion("last_time is not null");
            return (Criteria) this;
        }

        public Criteria andLastTimeEqualTo(Date value) {
            addCriterion("last_time =", value, "lastTime");
            return (Criteria) this;
        }

        public Criteria andLastTimeNotEqualTo(Date value) {
            addCriterion("last_time <>", value, "lastTime");
            return (Criteria) this;
        }

        public Criteria andLastTimeGreaterThan(Date value) {
            addCriterion("last_time >", value, "lastTime");
            return (Criteria) this;
        }

        public Criteria andLastTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("last_time >=", value, "lastTime");
            return (Criteria) this;
        }

        public Criteria andLastTimeLessThan(Date value) {
            addCriterion("last_time <", value, "lastTime");
            return (Criteria) this;
        }

        public Criteria andLastTimeLessThanOrEqualTo(Date value) {
            addCriterion("last_time <=", value, "lastTime");
            return (Criteria) this;
        }

        public Criteria andLastTimeIn(List<Date> values) {
            addCriterion("last_time in", values, "lastTime");
            return (Criteria) this;
        }

        public Criteria andLastTimeNotIn(List<Date> values) {
            addCriterion("last_time not in", values, "lastTime");
            return (Criteria) this;
        }

        public Criteria andLastTimeBetween(Date value1, Date value2) {
            addCriterion("last_time between", value1, value2, "lastTime");
            return (Criteria) this;
        }

        public Criteria andLastTimeNotBetween(Date value1, Date value2) {
            addCriterion("last_time not between", value1, value2, "lastTime");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}